<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
	<xsl:template match="/">
		<root>
			<param1>
				<xsl:for-each select="root/param1">
					<AttrCatId>
						<AttributeID>
							<!--<xsl:variable name="unique-list" select="//Attribute_Category_ID[not(.=following::Attribute_Category_ID)]"/>-->
							<xsl:variable name="unique-list" select="./Attribute_Category_ID[not(.=following::Attribute_Category_ID)]" />
							<xsl:for-each select="$unique-list">
								<xsl:value-of select="."/>
							</xsl:for-each>
						</AttributeID>
						<Attribute_Category_Value>
							<xsl:value-of select="AttrCatId/Attribute_Category_Value"/>
						</Attribute_Category_Value>
					</AttrCatId>
				</xsl:for-each>
			</param1>
		</root>
	</xsl:template>
</xsl:stylesheet>
